package com.loto.webapp.action;

import com.loto.webapp.common.BaseAction;
import com.loto.webapp.util.Files;
import com.opensymphony.xwork2.ActionContext;

public class LogoutAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6846950558997144308L;

	public String execute() throws Exception {
		Files.cleanCache(getLoginUsername());
		ActionContext.getContext().getSession().clear();
		return SUCCESS;
	}
}
